package helloworld.delegate.center;

import helloworld.admin.bean.CenterAdminBean;
import helloworld.admin.service.center.CenterListService;
import helloworld.admin.service.center.CenterListServiceException;

/**
 *
 * @author TUYEN-DM
 * @version $Revision:   $ $Date:   $
 */
public class CenterListDelegate 
{

	public CenterListDelegate() 
	{
	}

	public CenterAdminBean[] findCenters(String centerName) throws CenterListServiceException
	{
		//Generally a EJB lookup on ServiceLocator goes here.
		//For simplicity, Customer List Service is just a POJO in our case
		
		CenterListService custListService = new CenterListService();
		return custListService.findCenters(centerName);
	}
}